/*
 * =====================================================================================
 *
 *       Filename:  StoppingState.cc
 *
 *    Description:  :wq
 *
 *        Version:  1.0
 *        Created:  01/04/2022 03:55:57 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "StoppingState.h"
#include "Context.h"
#include "Log.h"
#include <iostream>
using std::cout;
using std::endl;
using std::string;

static const string TAG = "StoppingState";

StoppingState::StoppingState() {
}

StoppingState::~StoppingState() {
}

void StoppingState::Open() {
    LogI("In");
    this->LiftState::m_pContext->SetLiftState(Context::pOpenningState);
    this->LiftState::m_pContext->GetLiftState()->Open();
}

void StoppingState::Close() {
    LogI("In");
}

void StoppingState::Run() {
    LogI("In");
    this->LiftState::m_pContext->SetLiftState(Context::pRunningState);
    this->LiftState::m_pContext->GetLiftState()->Run();
}

void StoppingState::Stop() {
    LogI("电梯停止了...");
}
